Don't write to parent repo
authorAlexander Larsson <alexl@redhat.com>
Thu, 29 Mar 2018 13:19:33 +0000 (15:19 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 29 Mar 2018 14:11:38 +0000 (14:11 +0000)
commit28c7bc6d0e153a0b07bdb82d25473a490765067f
tree48c256cee5e3e1ca914586556126489e51cb4803
parent9721be34e161ff5b2d699c52e1add633e8c33347
Don't write to parent repo

In _try_clone_from_payload_link, don't try to do the clone in the
parent repo, because we don't want to modify that. parent repos are
typically used when you want a shared, immutable base.

For example in flatpak, the parent repo is the system repo which you
don't have write access to, so any modification to it will fail with
EACCES, making it impossible to install via the system helper.

Closes: #1524
Approved by: cgwalters
src/libostree/ostree-repo-commit.c